package io.plus.user_interface.common.packet;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 用户id;
     */
    private String id;
    /**
     * user nick
     */
    private String nick;

    /**
     * 在线状态(online、offline)
     */
    private String status;


    /**
     * 好友列表;
     */
    private List<Group> friends;
    /**
     * 群组列表;
     */
    private List<Group> groups;
    /**
     * 扩展预留字段;
     */
    private JSONObject extras;

    public User() {
    }

    public User(String id, String nick) {
        this.id = id;
        this.nick = nick;
    }


}
